package scrapbook.catalog;

import org.apache.xml.resolver.CatalogManager;
import org.apache.xml.resolver.tools.CatalogResolver;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author georgfl
 */
public class CatalogWithURN
{
    @Test
    public void resolveUrn()
    {
        CatalogManager mgr = new CatalogManager();
        mgr.setCatalogFiles("test/java/scrapbook/catalog/catalog-with-urn.xml");
        CatalogResolver resolver = new CatalogResolver(mgr);
        String res = resolver.getResolvedEntity(null, "urn:X-FGeorges:some-urn");
        assertTrue("", res.endsWith("trunk/test/java/scrapbook/catalog/catalog-with-urn.xml"));
    }
}
